package com.zhudeshuai.zhudemolist.fragment;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.zhu.zhuCore.utils.LogUtil;
import com.zhudeshuai.zhudemolist.R;

/**
 * @author zhudeshuai
 * @since 2018/5/31
 */

public class TestFragment extends Fragment {

	private static final String TAG = "zhu";
	@Nullable
	@Override
	public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
		LogUtil.d("TAG","Fragment--onCreateView");
		return inflater.inflate(R.layout.fragment_test,container,false);
	}

	@Override
	public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
		super.onViewCreated(view, savedInstanceState);
		LogUtil.d("TAG","Fragment--onViewCreated");


	}

	@Override
	public void onCreate(@Nullable Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		LogUtil.d("TAG","Fragment--onCreate," + this.toString() + ",Activity:" + getActivity());
	}

	@Override
	public void onStart() {
		super.onStart();
		LogUtil.d("TAG","Fragment--onStart");

	}

	@Override
	public void onResume() {
		super.onResume();
		LogUtil.d("TAG","Fragment--onResume");
	}

	@Override
	public void onAttach(Context context) {
		super.onAttach(context);
		LogUtil.d("TAG","Fragment--onAttach");
	}

	@Override
	public void onDestroyView() {
		super.onDestroyView();
		LogUtil.d("TAG","Fragment--onDestroyView");
	}

	@Override
	public void onDestroy() {
		super.onDestroy();
		LogUtil.d("TAG","Fragment--onDestroy");
	}

	@Override
	public void onDetach() {
		super.onDetach();
		LogUtil.d("TAG","Fragment--onDetach");
	}
}
